var http = require('/utils/http.js')
App({
  onLaunch: function () {
    
    if (!wx.cloud) {
      console.error('请使用 2.2.3 或以上的基础库以使用云能力')
    } else {
      wx.cloud.init({
        env: 'dongman-a12fz',
        traceUser: true,
      })
    }

    this.globalData = {}
  },
  globalData:{
    token:'',
    imageTarget:''
  },
  request: {
    reqLoading: http.reqLoading,
    req: http.req,
    reqCloudLoading: http.reqCloudLoading,
    reqCloud: http.reqCloud
  },
  showToastMsg:function(msg){
    wx.showToast({
      title: msg,
      icon:"none"
    })
  }
})
